﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RpcModel;
using SqlExecHelper;
using Wedonek.RpcStore.Service.Helper;
using Wedonek.RpcStore.Service.Model;

namespace Wedonek.RpcStore.Service.DAL
{
        internal class RpcTraceListDAL : SqlBasicClass
        {
                public RpcTraceListDAL () : base ("RpcTraceList", "RpcExtendService")
                {

                }

                public RpcTrace[] Query (TraceQueryParam query, IBasicPage paging, out long count)
                {
                        paging.InitOrderBy ("Id", true);
                        return base.Query<RpcTrace> (paging.OrderBy, paging.Index, paging.Size, out count, query.ToWhere ());
                }

        }
}
